package com.taiji.dicom4cloud.smart.rfid.mqtt;

import javax.validation.constraints.NotBlank;

public class Exchange<T> {

    @NotBlank(message = "客户端ID不能为空")
    private String clientId;

    @NotBlank(message = "命令码不能为空")
    private String command;

    private String ip;
    private T data;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
